import React, {Component} from 'react';
import ScLayoutTab from '../components/layout/scLayoutTab';


class Index extends Component {
  constructor () {
    super();
    this.state = {
      menuList: []
    };
  }

  componentWillMount () {
    // 本地服务调试请直接设置token
    this.setLocalTest('fefc5941-7f45-4c0b-a327-1eff29947608', '张三');
  }

  setLocalTest (token, name) {
    process.env.doingType === 'start' && window.sessionStorage.setItem('token', token);
    process.env.doingType === 'start' && window.sessionStorage.setItem('name', name);
  }

  render () {
    return <div>
      <ScLayoutTab/>
    </div>
  }
}

export default Index;